package org.example.springcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(basePackages = {"org.example.springcloud.dao.**","com.gitee.sunchenbin.mybatis.actable.dao.*"})
@ComponentScan({"org.example.springcloud.*", "com.gitee.sunchenbin.mybatis.actable.manager.*"})
//@EnableEurekaClient
//@EnableDiscoveryClient
public class UserApp extends SpringBootServletInitializer {


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(UserApp.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(UserApp.class, args);
    }
}
